{{#section 'style'}}<link rel="stylesheet" href="/style/home.css">{{/section}}

<div class="techbook home">
    <!--head-->
    {{> header_index}}
    <!--head End-->

    <!--body-->
    <div class="body">
        <div class="news wrap">
            <div class="con">
                <dl>
                    <dt>快报资讯</dt>
                    <dd><a href="">11全国计算机等级考试二级全国计算机等级考试二级END</a></dd>
                    <dd><a href="">11全国计算机等级考试二级全国计算机等级考试二级END</a></dd>
                    <dd><a href="">11全国计算机等级考试二级全国计算机等级考试二级END</a></dd>
                    <dd><a href="">11全国计算机等级考试二级全国计算机等级考试二级END</a></dd>
                    <dd><a href="">11全国计算机等级考试二级全国计算机等级考试二级END</a></dd>
                </dl>
                <div class="ad">
                    <a href=""><img src="img/example/ad_01.jpg" alt=""/></a>
                </div>
            </div>

        </div>

        <div class="slide" id="slide">

            <ul class="list">
                <li><a href=""><img src="img/front/slide01.jpg" alt=""/></a></li>
                <li><a href=""><img src="img/front/slide02.jpg" alt=""/></a></li>
                <li><a href=""><img src="img/front/slide03.jpg" alt=""/></a></li>
                <li><a href=""><img src="img/front/slide04.jpg" alt=""/></a></li>
            </ul>

            <div class="arrows wrap">
                <span class="left"></span><span class="right"></span>
            </div>
            <div class="btns"><span class="curr"></span><span></span><span></span><span></span></div>
        </div>

        <div class="floor wrap bgWhite">
            <div class="tab floorTab">
                <div class="number fl"><b>1F</b><h3>新书速递</h3></div>
                <div class="tabs">
                    <ul class="fr">
                        {{#each cats}}
                            <li class="tab{{#if this.tabCurr}} tabCurr{{/if}}">{{this.cn}}</li>
                        {{/each}}
                    </ul>
                </div>
                <div class="tabCons">
                    {{#each result.news}}
                    <div class="tabCon {{#if @first}} tabConCurr{{/if}}">
                        <div class="sideBookList fl">
                            {{#each this.top8}}
                                <dl {{#if @first}}class="hl"{{/if}}>
                                    <dt{{#topN @index n=3}} class="hot"{{/topN}}>{{addOne @index}}</dt>
                                    <dd>
                                        <dl class="book">
                                            <dt><div class="img"><a href="/item/{{this.sku}}"><img src="{{../../imagesCDN}}/previews/{{this.img}}" alt=""/></a></div></dt>
                                    <dd>
                                        <div><a href="/item/{{this.sku}}">{{this.name}}</a></div>
                                        <b>￥{{this.price}}</b>
                                        <p>￥{{this.market}}</p>
                                    </dd>
                                </dl>
                                </dd>
                                </dl>
                            {{/each}}
                        </div>

                        <ul class="floorBookList fr">
                            {{#each this.last}}
                                <li>
                                    <div class="imgBox"><div class="img"><a href="/item/{{this.sku}}"><img src="{{../../imagesCDN}}/previews/{{this.img}}" alt=""/></a></div></div>
                                    <a href="/item/{{this.sku}}" class="name">{{this.name}}</a>
                                    <p>
                                        <b>￥{{this.price}}</b>
                                        <span>￥{{this.market}}</span>
                                    </p>
                                </li>
                            {{/each}}
                        </ul>

                    </div>
                    {{/each}}


                </div>
            </div>
        </div>
        <div class="floor wrap bgWhite">
            <div class="tab floorTab">
                <div class="number fl"><b>2F</b><h3>图书推荐</h3></div>
                <div class="tabs">
                    <ul class="fr"><li class="tab tabCurr">人工智能</li><li class="tab">编程语言</li><li class="tab">数据库</li><li class="tab">操作系统</li><li class="tab">移动开发</li></ul>
                </div>
                <div class="tabCons">

                    {{#each result.recommended}}
                        <div class="tabCon {{#if @first}} tabConCurr{{/if}}">
                            <div class="sideBookList fl">
                                {{#each this.top8}}
                                    <dl {{#if @first}}class="hl"{{/if}}>
                                        <dt{{#topN @index n=3}} class="hot"{{/topN}}>{{addOne @index}}</dt>
                                        <dd>
                                            <dl class="book">
                                                <dt><div class="img"><a href="/item/{{this.sku}}"><img src="{{../../imagesCDN}}/previews/{{this.img}}" alt=""/></a></div></dt>
                                        <dd>
                                            <div><a href="/item/{{this.sku}}">{{this.name}}</a></div>
                                            <b>￥{{this.price}}</b>
                                            <p>￥{{this.market}}</p>
                                        </dd>
                                    </dl>
                                    </dd>
                                    </dl>
                                {{/each}}
                            </div>

                            <ul class="floorBookList fr">
                                {{#each this.last}}
                                    <li>
                                        <div class="imgBox"><div class="img"><a href="/item/{{this.sku}}"><img src="{{../../imagesCDN}}/previews/{{this.img}}" alt=""/></a></div></div>
                                        <a href="/item/{{this.sku}}" class="name">{{this.name}}</a>
                                        <p>
                                            <b>￥{{this.price}}</b>
                                            <span>￥{{this.market}}</span>
                                        </p>
                                    </li>
                                {{/each}}
                            </ul>

                        </div>
                    {{/each}}



                </div>
            </div>
        </div>

        <div class="floorAd">
            <div class="wrap">
                <a href=""><img src="img/example/floor_ad.jpg" alt=""/></a><a href=""><img src="img/example/floor_ad.jpg" alt=""/></a><a href=""><img src="img/example/floor_ad.jpg" alt=""/></a>
            </div>
        </div>

        <div class="box01 wrap">
            <div class="tab commentTab bgWhite fl">
                <div class="title fl">热门评论</div>
                <div class="tabs">
                    <ul class="fr">
                        <li class="tab tabCurr"></li>
                        <li class="tab"></li>
                        <li class="tab"></li>
                    </ul>
                </div>
                <div class="tabCons">
                    <div class="tabCon tabConCurr">
                        <div class="hotCommentBookList">
                            <dl>
                                <dt><div class="img"><a href=""><img src="img/example/book_99x99.jpg" alt=""/></a></div></dt>
                                <dd>
                                    <a href="">111111“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论</a>
                                    <p>“皮皮皮”的评论</p>
                                </dd>
                            </dl>
                            <dl>
                                <dt><div class="img"><a href=""><img src="img/example/book_99x99.jpg" alt=""/></a></div></dt>
                                <dd>
                                    <a href="">“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论</a>
                                    <p>“皮皮皮”的评论</p>
                                </dd>
                            </dl>
                            <dl>
                                <dt><div class="img"><a href=""><img src="img/example/book_99x99.jpg" alt=""/></a></div></dt>
                                <dd>
                                    <a href="">“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论</a>
                                    <p>“皮皮皮”的评论</p>
                                </dd>
                            </dl>
                            <dl>
                                <dt><div class="img"><a href=""><img src="img/example/book_99x99.jpg" alt=""/></a></div></dt>
                                <dd>
                                    <a href="">“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论</a>
                                    <p>“皮皮皮”的评论</p>
                                </dd>
                            </dl>
                            <dl>
                                <dt><div class="img"><a href=""><img src="img/example/book_99x99.jpg" alt=""/></a></div></dt>
                                <dd>
                                    <a href="">“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论</a>
                                    <p>“皮皮皮”的评论</p>
                                </dd>
                            </dl>
                            <dl>
                                <dt><div class="img"><a href=""><img src="img/example/book_99x99.jpg" alt=""/></a></div></dt>
                                <dd>
                                    <a href="">“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论“皮皮皮”的评论</a>
                                    <p>“皮皮皮”的评论</p>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="tabCon">2</div>
                    <div class="tabCon">3</div>
                </div>
            </div>

            <dl class="userShow bgWhite fr">
                <dt>书友晒单</dt>
                <dd>
                    <ul class="userList">
                        <li>
                            <a href=""><div class="img"><img src="img/example/user_150x150.jpg" alt=""/></div><span>晒出自己的技术</span></a>
                        </li>
                        <li>
                            <a href=""><div class="img"><img src="img/example/user_150x150.jpg" alt=""/></div><span>晒出自己的技术</span></a>
                        </li>
                        <li>
                            <a href=""><div class="img"><img src="img/example/user_150x150.jpg" alt=""/></div><span>晒出自己的技术</span></a>
                        </li>
                        <li>
                            <a href=""><div class="img"><img src="img/example/user_150x150.jpg" alt=""/></div><span>晒出自己的技术</span></a>
                        </li>
                    </ul>

                </dd>
            </dl>
        </div>

        <div class="home_bottom">
            <div class="left">
                <div class="inner"></div>
            </div>
            <div class="mid wrap">
                <div class="inner">
                    <div class="bgLeft fl">
                        <div class="logo"><img src="img/front/bottom_logo.gif" alt=""/></div>
                        <div class="line"></div>
                        <div class="txt">
                            <h3>51techbook，专业科技类图书提供商</h3>
                            <h4>让每位专研技术的人都能买到便宜的好书</h4>
                        </div>
                    </div>
                    <div class="bgRight fr">
                        <div class="btns">
                            <a href="">登&nbsp;录</a><a href="">注&nbsp;册</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="right">
                <div class="inner"></div>
            </div>
        </div>
    </div>
    <!--body End-->

    <!--foot-->
    {{>footer}}
    <!--foot End-->

    <!--sideBar-->

    <!--sideBar End-->

</div>

{{#section 'script'}}
<script>
    $(function(){
        //Tab
        $('.tab').tab({
            eventType:'mouseenter',
            callback: function ($currTab,$currCon,i,$tab) {
                //$currTab:当前选项卡
                //$currCon:当前内容
                //i:索引
                //$tab:整个Tab，插件选择器选择的'.tab'
            }
        });

        //Slide
        0&&$('#slide').slide({
            list:'.list',
            left:'.arrows .left',
            right:'.arrows .right',
            btns:'.btns'
        });

        //类目导航
        $('#menuList').on({
            mouseenter: function () {
                $(this).addClass('open');
            },
            mouseleave: function () {
                $(this).removeClass('open');
            }
        },'dl');

        //楼层左侧TopN书籍Toggle
        $('.sideBookList').sideBookListToggle();
    });
</script>
{{/section}}